package com.glodon.paas.account.dao.mongo;

import com.glodon.paas.account.dao.ConsumerDao;
import com.glodon.paas.account.dao.domain.ConsumerEntity;
import com.google.code.morphia.query.Query;

public class ConsumerDaoMongoImpl  extends MongoDBDao<ConsumerEntity, String> implements ConsumerDao{
	@Override
	public ConsumerEntity getConsumerByKey(String key) {
		Query<ConsumerEntity> q = this.createQuery().filter("consumerkey", key);
		return q.get();
	}
}

